package cn.itenzo.vo;

import java.io.Serializable;

/**
 * Created by ENZO on 2017/5/22.
 */
public class ReqParam implements Serializable {
    private static final long serialVersionUID = 4623568639651338548L;

    private int offset ;

    private int limit;

    private String order;

    private String sort;

    private Object object;


    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public Integer getPage() {
        return  this.offset / this.limit+ 1;
    }


    public String getOrderCluse(){

        return this.sort + " " + this.order;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}
